package org.zdc.pivot.wtk.listener;
import org.zdc.pivot.wtk.Component;
import org.zdc.pivot.wtk.KeyLocation;

interface IComponentKeyListener 
{
	/**
	 * 当按键按完时调用
	 * @param	c
	 * @param	character
	 */
	function keyTyped(c:Component, character:String):Void;
	
	/**
	 * 当按键被按下时调用
	 * @param	c
	 * @param	character
	 */
	function keyPressed(c:Component, keyCode:Int, keyLocation:KeyLocation):Bool;
	
	/**
	 * 当按键被释放时调用
	 * @param	c
	 * @param	character
	 */
	function keyReleased(c:Component, keyCode:Int, keyLocation:KeyLocation):Bool;
}